package net.yihang.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;

public class Person {

    @Excel(name="序号")
    private int id;

    @Excel(name="姓名")
    private String name;

    @Excel(name="所在")
    private String location;

    @Excel(name="性別")
    private String sex;

    @Excel(name="没年")
    private int death;

    @Excel(name="生年")
    private int birth;

    @Excel(name="武力")
    private int forces;

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getDeath() {
        return death;
    }

    public void setDeath(int death) {
        this.death = death;
    }

    public int getBirth() {
        return birth;
    }

    public void setBirth(int birth) {
        this.birth = birth;
    }

    public int getForces() {
        return forces;
    }

    public void setForces(int forces) {
        this.forces = forces;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    @Override
    public String toString() {
        return "Person{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", location='" + location + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + (death-birth) +
                ", forces=" + forces +
                '}';
    }
}
